package shoppingmall.reception.pojo;

/**
 * 实体类-用户购物车
 */
public class UserCart {
    private int id;  //主键id
    private int cartUserId;  //当前购物车数据对应的用户id
    private int cartCommodityId;  //购物车此条数据对应的商品id
    private int cartCommodityCount;  //对应的商品数量
    private String cartCommodityAttr;  //对应的商品规格属性，字符串描述
    private int cartCommodityStandardId;  //对应的商品规格id
    private boolean cartSelected;  //对应该条购物车数据是否选择状态
    private String updateTime;  //更新时间
    private String createTime;  //创建时间

    public UserCart() {
    }

    public UserCart(int id, int cartUserId, int cartCommodityId, int cartCommodityCount, String cartCommodityAttr, int cartCommodityStandardId, boolean cartSelected, String updateTime, String createTime) {
        this.id = id;
        this.cartUserId = cartUserId;
        this.cartCommodityId = cartCommodityId;
        this.cartCommodityCount = cartCommodityCount;
        this.cartCommodityAttr = cartCommodityAttr;
        this.cartCommodityStandardId = cartCommodityStandardId;
        this.cartSelected = cartSelected;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCartUserId() {
        return cartUserId;
    }

    public void setCartUserId(int cartUserId) {
        this.cartUserId = cartUserId;
    }

    public int getCartCommodityId() {
        return cartCommodityId;
    }

    public void setCartCommodityId(int cartCommodityId) {
        this.cartCommodityId = cartCommodityId;
    }

    public int getCartCommodityCount() {
        return cartCommodityCount;
    }

    public void setCartCommodityCount(int cartCommodityCount) {
        this.cartCommodityCount = cartCommodityCount;
    }

    public String getCartCommodityAttr() {
        return cartCommodityAttr;
    }

    public void setCartCommodityAttr(String cartCommodityAttr) {
        this.cartCommodityAttr = cartCommodityAttr;
    }

    public int getCartCommodityStandardId() {
        return cartCommodityStandardId;
    }

    public void setCartCommodityStandardId(int cartCommodityStandardId) {
        this.cartCommodityStandardId = cartCommodityStandardId;
    }

    public boolean isCartSelected() {
        return cartSelected;
    }

    public void setCartSelected(boolean cartSelected) {
        this.cartSelected = cartSelected;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
